package com.hainabo.mgcmall.dao;

import com.hainabo.mgcmall.model.PassengerInfo;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;

/**
 * Created by guoshihao on 2017/11/30.
 */
public interface PassengerRespository extends PagingAndSortingRepository<PassengerInfo, Long> {

    @Query(value = "select * from t_passenger_info  where user_id=:id", nativeQuery = true)
    public PassengerInfo getInfo( @Param("id")Long id);
}
